package magicboard.view.action
{
	import magicboard.view.Board;
	import magicboard.view.PasteBox;
	
	import mx.managers.PopUpManager;
	
	
	public class PasteAction implements Action
	{
		// --------------------------------------------------------------------------------------------
		public function PasteAction(board:Board){
			_board = board
		}

		// --------------------------------------------------------------------------------------------
		public function execute():void{
			var dlg:PasteBox = new PasteBox();
				
			dlg.board = _board;
			PopUpManager.addPopUp(dlg, _board, true);
			PopUpManager.centerPopUp(dlg);
		}
		
		
		// --------------------------------------------------------------------------------------------
		// Private members
		private var _board:Board;
	}
}